<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Pg-Type" content="nav">
<title>店铺风格 - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/plupload.js"></script><script language="javascript" src="/static/thinkct/js/upload.js"></script><script type="text/javascript" src="/static/thinkct/js/color/color.js"></script></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"} 
<div class="uright">
<div class="mwz">
<li ><a href="shop">基本设置</a></li><li ><a href="service">客服</a></li><li ><a href="nav">导航</a></li><li ><a href="skill">技能</a></li><li ><a href="commend">推荐</a></li><li class="cur"><a>风格</a></li><li ><a href="slide">幻灯片</a></li><li ><a href="/member/promotion/sell">推广</a></li><li class="prompt r"><a href='{:sysconf('site_domain')}/ishop{$uc.id}/' target="_blank">我的店铺</a></li>
  </div>
<form class="layui-form layui-font14" action="" method="post" enctype="multipart/form-data">

<div class="layui-form-item">
    <label class="layui-form-label">店铺招牌</label>
    <div class="layui-input-block">

	<div class="layui-box layui-upload-button"><input type="file" name="file" id="picinp" class="layui-upload-file" accept="image/png,image/jpeg,image/gif" onchange="checkfile(this,'pic')"><span class="layui-upload-icon"><i class="layui-icon"></i>选择图片</span></div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux">尺寸必须为1190x120（否则不予上传）；大小上限1MB；格式JPG,GIF,PNG</div></div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux " style="color:red">{if(!empty($data.bannar))}<input type="checkbox" value="ok" name="nobanner">不启用招牌（删除招牌）{/if}</div></div>
    	<br>
<!--div class="div_preview" pixel_data='2' w='1190' h='120' size_data="1024000"  style="width:595px;height:60px;" id="pic"-->
<div class="div_preview" pixel_data="2" w="1190" h="120" size_data="1024000" style="width:595px;height:60px;background-image:url({$data.bannar});-moz-background-size: 100% 100%; -o-background-size: 100% 100%;-webkit-background-size: 100% 100%;" id="pic">
<img src=""></div>
</div>
</div>


<div class="layui-form-item">
<label class="layui-form-label">整体配色</label>
<div class="layui-inline shop_zhuti">
<div><img src="/static/thinkct/image/shop_blue.jpg" data_color=''><p>天蓝色</p> </div>
<div><img src="/static/thinkct/image/shop_green.jpg" data_color='green'><p>草绿色</p></div>
<div><img src="/static/thinkct/image/shop_pink.jpg" data_color='pink'><p>粉红色</p></div>
<div><img src="/static/thinkct/image/shop_bkwe.jpg" data_color='bk_we'><p>黑白色</p></div>
<div><img src="/static/thinkct/image/shop_yellow.jpg" data_color='yellow'><p>鹅黄色</p></div>
<input type="hidden" value="{$data.zhuti}" name="zhuti" >
</div>
</div>

<div class="layui-form-item">
   <label class="layui-form-label">招牌背景</label>

    <div class="layui-inline">
<input type='radio' lay-filter="bg_type" name='bg_type' {if($data.bg_type == 'no' or empty($data.bg_color_input))}checked{/if} title='随整体配色'  value='no' />
<input type='radio' lay-filter="bg_type" name='bg_type' {if($data.bg_type != 'no')}checked{/if} value='color' title='自定义颜色'/>
<div  class='banner_color bg_color' {if($data.bg_type == 'no')}style="display:none;"{/if}><br>
<input type="text" name="bg_color_input" class="color"  value="{$data.bg_color_input}">
</div>
</div>
	
</div>

<div class="layui-form-item" style="padding-bottom:15px;">
    <label class="layui-form-label"></label>
    <div class="layui-input-block"><input type="submit" class="layui-btn" lay-submit=""  value="确认提交" /></div>
</div>
</form>

</div>
 </div>
{include file="bottom"}</body>
<script type="text/javascript">
layui.use('form',function(){var form=layui.form();form.on('submit',function(data){progress(true);return true});form.on('radio(bg_type)',function(data){data.value=='no'?$('.banner_color').hide():$('.banner_color').show()});$(".shop_zhuti div").on('click',function(){$(this).attr('class','cur').siblings('div').attr('class','').siblings('input[name="zhuti"]').val($(this).children('img').attr('data_color'))});$("#no").trigger("click");$("img[data_color='{$data.zhuti}']").trigger("click")});
</script>
</html>